#include "mylabel.h"
mylabel::mylabel(QWidget *parent) : QLabel(parent)
{

}


//鼠标点击
void mylabel::mousePressEvent(QMouseEvent *ev)
{
  MainWindow::click_width=ev->x();
  MainWindow::click_height=ev->y();
}

//鼠标释放
void mylabel::mouseReleaseEvent(QMouseEvent *ev)
{
MainWindow::release_width=ev->x();
MainWindow::release_height=ev->y();
}

//鼠标移动
void mylabel::mouseMoveEvent(QMouseEvent *ev)
{
MainWindow::move_width=ev->x();
MainWindow::move_height=ev->y();
}
